//admin的相关vuex配置
const adminOptions = {
    namespaced:true,
    actions:{
        adminLogin(context,value){
            console.log('管理员登录了，这里是actions',value)
            context.commit('LOGIN',value)
        }
    },
    mutations:{
        LOGIN(state,value){
            console.log('管理员登录了，这里是mutations',value)
            state.user = value
        },
        SHOWTEACHER(state,value){
            console.log('正在将教师列表放入vuex，这里是mutations',value)
            state.teachers = value
        },
        SHOWSTUDENT(state,value){
            console.log('正在将学生列表放入vuex，这里是mutations',value)
            state.students = value
        },
        SHOWCLASS(state,value){
            console.log('正在将班级列表放入vuex，这里是mutations',value)
            state.classes = value
        },

        SHOWCOURSE(state,value){
            console.log('正在将课程列表放入vuex，这里是mutations',value)
            state.courses = value
        },

    },
    state:{
        user:{},
        teachers:[],
        students:[],
        classes:[],
        courses:[],
    },
}
export default adminOptions